﻿#ifndef Price_h
#define Price_h

#include <cctype>
#include <cstdio>
#include <cstdlib>
#include "String.h"


namespace TL {
    class Price {
    private:
        double m_Number;
        String m_String;

    public:
        static Price ExtractPrice(const char *str);
        static Price ExtractPrice(const String &str);

    public:
        Price();
        Price(double num);
        Price(String str);
        Price(const Price &price);
        ~Price();

        double GetNumber() const;
        String GetString() const;
        void Set(double num);
        void Set(String str);

        Price &operator=(double num);
        Price &operator=(String str);
        Price &operator=(const Price &price);
    };
}

#endif
